<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});
#访问控制器的两种方法
//Route::get('member/info','MemberController@info');
//Route::any('member/info',['uses'=>'MemberController@info']);

#使用别名访问控制器
//Route::any('member/info',[
//    'uses'=>'MemberController@info',
//    'as'=>'memberinfo',
//]);

#传参到控制器
Route::get('member/info/{id}','MemberController@info')
->where('id','[0-9]+');

Route::any('index',['as'=>'index','uses'=>'UserController@index']);
Route::any('introduce',['as'=>'introduce','uses'=>'UserController@introduce']);
Route::any('dagang',['as'=>'dagang','uses'=>'UserController@dagang']);
Route::any('kejian',['as'=>'kejian','uses'=>'UserController@kejian']);
Route::any('shiyan',['as'=>'shiyan','uses'=>'UserController@shiyan']);
Route::any('lianxi',['as'=>'lianxi','uses'=>'UserController@lianxi']);
//Route::any('message',['uses'=>'UserController@message']);


Route::group(['middleware'=>['web']],function (){

});
Route::any('message',['uses'=>'UserController@message']);
Route::any('message1',['uses'=>'UserController@message1']);


Route::any('user_info',['as'=>'user_info','uses'=>'AdminController@user_info']);

